3.4 \(\int (a+b \text{csch}^2(c+d x)) \, dx\)

Optimal. Leaf size=16 \[ a x-\frac{b \coth (c+d x)}{d} \]

[Out]

a*x - (b*Coth[c + d*x])/d

________________________________________________________________________________________

Rubi [A]  time = 0.0137868, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3767, 8} \[ a x-\frac{b \coth (c+d x)}{d} \]

Antiderivative was successfully verified.

[In]

Int[a + b*Csch[c + d*x]^2,x]

[Out]

a*x - (b*Coth[c + d*x])/d

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \left (a+b \text{csch}^2(c+d x)\right ) \, dx &=a x+b \int \text{csch}^2(c+d x) \, dx\\ &=a x-\frac{(i b) \operatorname{Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{d}\\ &=a x-\frac{b \coth (c+d x)}{d}\\ \end{align*}

Mathematica [A]  time = 0.0171109, size = 16, normalized size = 1. \[ a x-\frac{b \coth (c+d x)}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[a + b*Csch[c + d*x]^2,x]

[Out]

a*x - (b*Coth[c + d*x])/d

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 17, normalized size = 1.1 \begin{align*} ax-{\frac{b{\rm coth} \left (dx+c\right )}{d}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a+b*csch(d*x+c)^2,x)

[Out]

a*x-b*coth(d*x+c)/d

________________________________________________________________________________________

Maxima [A]  time = 0.981907, size = 31, normalized size = 1.94 \begin{align*} a x + \frac{2 \, b}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*csch(d*x+c)^2,x, algorithm="maxima")

[Out]

a*x + 2*b/(d*(e^(-2*d*x - 2*c) - 1))

________________________________________________________________________________________

Fricas [B]  time = 1.59662, size = 89, normalized size = 5.56 \begin{align*} -\frac{b \cosh \left (d x + c\right ) -{\left (a d x + b\right )} \sinh \left (d x + c\right )}{d \sinh \left (d x + c\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*csch(d*x+c)^2,x, algorithm="fricas")

[Out]

-(b*cosh(d*x + c) - (a*d*x + b)*sinh(d*x + c))/(d*sinh(d*x + c))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{csch}^{2}{\left (c + d x \right )}\right )\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*csch(d*x+c)**2,x)

[Out]

Integral(a + b*csch(c + d*x)**2, x)

________________________________________________________________________________________

Giac [A]  time = 1.16541, size = 31, normalized size = 1.94 \begin{align*} a x - \frac{2 \, b}{d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*csch(d*x+c)^2,x, algorithm="giac")

[Out]

a*x - 2*b/(d*(e^(2*d*x + 2*c) - 1))